Ubuntu 20.04 LTS 設定固定 ip
改成靜態ip的步驟
$sudo vi /etc/netplan/00-installer-config.yaml
network:
ethernets:
ens160:
addresses: [192.167.1.18/24]
gateway4: 192.168.1.1
nameservers:
addresses: [10.10.10.26,8.8.8.8] #dns server
version: 2
按 ESC
:wq
套用設定檔
$sudo netplan apply